﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.SceneManagement.SceneUtility
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System.Runtime.CompilerServices;
using UnityEngine.Bindings;

#nullable disable
namespace UnityEngine.SceneManagement
{
  /// <summary>
  ///   <para>Scene and Build Settings related utilities.</para>
  /// </summary>
  [NativeHeader("Runtime/Export/SceneManager/SceneUtility.bindings.h")]
  public static class SceneUtility
  {
    /// <summary>
    ///   <para>Get the Scene path from a build index.</para>
    /// </summary>
    /// <param name="buildIndex"></param>
    /// <returns>
    ///   <para>Scene path (e.g "AssetsScenesScene1.unity").</para>
    /// </returns>
    [StaticAccessor("SceneUtilityBindings", StaticAccessorType.DoubleColon)]
    [MethodImpl(MethodImplOptions.InternalCall)]
    public static extern string GetScenePathByBuildIndex(int buildIndex);

    /// <summary>
    ///   <para>Get the build index from a Scene path.</para>
    /// </summary>
    /// <param name="scenePath">Scene path (e.g: "AssetsScenesScene1.unity").</param>
    /// <returns>
    ///   <para>Build index.</para>
    /// </returns>
    [StaticAccessor("SceneUtilityBindings", StaticAccessorType.DoubleColon)]
    [MethodImpl(MethodImplOptions.InternalCall)]
    public static extern int GetBuildIndexByScenePath(string scenePath);
  }
}
